package cn.org.xuanguang.kepler.hormos.orm.acl;


import java.util.ArrayList;
import java.util.List;

public abstract class AbstractIPolicy implements IPolicy {

    private String policyType;
    private String policyName;
    private String policyDesc;

    protected List<PolicyCondition> policyConditions = new ArrayList<>();

    public AbstractIPolicy addPolicyCondition(PolicyCondition policyCondition) {
        policyConditions.add(policyCondition);
        return this;
    }

    //移除一个策略条件
    public AbstractIPolicy removePolicyCondition(PolicyCondition policyCondition) {
        policyConditions.remove(policyCondition);
        return this;
    }
}
